package com.longcai.mapper.homepage;

import com.longcai.entity.homepage.GoodsClass;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品类型 Mapper 接口
 * </p>
 *
 * @author LWK
 * @since 2019-03-20
 */
@Mapper
@Repository
public interface GoodsClassMapper extends BaseMapper<GoodsClass> {

    List<GoodsClass> select(String name);

    /**
     * 关键字模糊商品类型
     *
     * @param keyvalue
     * @return
     */
    List<GoodsClass> selectname(String keyvalue);

    /**
     * 查询附近所有子类
     *
     * @param map
     * @return
     */
    List<GoodsClass> getNearMenuList(Map map);
}
